package com.djinfo.work.entity;

import com.djinfo.work.activiti.po.Role_permission;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.List;

/**
 * 2.5.1.1 角色信息主表
 * 
 * @author ming
 *
 */
@Entity
@Table(name = "tb_sys_role")
public class TbSysRoles implements java.io.Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private String pkRoleId;// 角色ID
	private String roleName; // 角色名
	private String roleDescription="暂无描述";//角色描述
	private String createTime;//创建时间
	private String updateTime;//修改时间
	private String createUser;
	private String updateUser;
	List<Role_permission> role_permissions;
	@Transient
	public List<Role_permission> getRole_permissions() {
		return role_permissions;
	}

	public void setRole_permissions(List<Role_permission> role_permissions) {
		this.role_permissions = role_permissions;
	}

	@Column(name = "create_user")
	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	@Column(name = "update_user")
	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	@Column(name = "create_time")
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	@Column(name = "update_time")
	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	public TbSysRoles() {
	}

	@Id
	@Basic(optional = false)
	@GeneratedValue(generator = "id")
	@GenericGenerator(name = "id", strategy = "uuid")
	@Column(name = "pk_role_id", unique = true, nullable = false)
	public String getPkRoleId() {
		return this.pkRoleId;
	}

	public void setPkRoleId(String pkRoleId) {
		this.pkRoleId = pkRoleId;
	}
	@Column(name = "role_name", nullable = false, length = 20)
	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	@Column(name = "role_description", nullable = false, length = 20)
	public String getRoleDescription() {
		return roleDescription;
	}

	public void setRoleDescription(String roleDescription) {
		this.roleDescription = roleDescription;
	}
}
